import 'package:flutter/material.dart';
import 'package:wanxiang_app/utils/constant.dart';
import 'package:wanxiang_app/widgets/tabs.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'account_textField2.dart';
typedef void ClickCallBack(String content);
class TipDialog extends Dialog {
  ClickCallBack callBack;
  final String title ;
  final String msg ;
  final String sureText ;
  final String cancelText ;
  TipDialog({this.title='', this.msg='',this.cancelText='取消',this.sureText='确定',required this.callBack} );

  @override
  Widget build(BuildContext context) {
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Container(
          alignment: Alignment.center,
          child: InkWell(
            onTap: (){
              callBack('cancel');
            },
            child: Container(
                width: 275.w,height: 382.h,
                alignment: Alignment.center,
                child:    Container(
                    alignment: Alignment.center,
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: [
                        Image.asset(Constant.IMG_BASE+"tip.png",width: 275.w,height: 382.h,),
                      ],
                    )
                )
            )
          ) ,
        )

    );
  }
}